#!/bin/bash

# Input parameters: Image file name (any type, png, gif, jpg...)
# Example:
#
# ./plot.sh kapmap.gif

echo "
set terminal png font '/usr/share/fonts/truetype/freefont/FreeSans.ttf' 13 size 525,500
set xlabel 'arcsec'
set output 'nfw.png'
p  'grid.dat' w l lc rgb 'gray'  t 'grid', 'cc.dat' w l lc rgb 'red' t 'Criticas'

set xrange [-25:25]
set yrange [-25:25]
set output 'kapmap.png'

p  'grid_kapmap.dat' w l lc rgb 'gray'  t 'grid', 'cc_kapmap.dat' w l lc rgb 'red' t 'Criticas'

set output 'nfw_kapmap.png'

p 'cc.dat' w l lc rgb 'red'  t 'NFW', 'cc_kapmap.dat' w l t 'Kappa map'
" | gnuplot -persist

montage nfw.png kapmap.png nfw_kapmap.png -geometry '400x400+2+2>' $1


